package com.example.springbootbabyu.service;


import com.example.springbootbabyu.entity.Goods;
import com.example.springbootbabyu.entity.GoodsDetail;
import com.example.springbootbabyu.entity.HotGoodsVO;
import com.example.springbootbabyu.entity.Sku;

import java.util.List;

public interface GoodsService {
    Sku getStockById(String skuId);
    GoodsDetail getGoodsDetail(String id);
    List<HotGoodsVO> getHotGoods(String id, String type, Integer limit);

    List<Goods> getRelevantGoods(Integer limit);

    GoodsDetail getGoodsDetailCache(String id);
    /**
     * 通过商品名称搜索商品
     */
    List<GoodsDetail> getGoodsByName(String name);
}
